package org.example.Context;

import java.util.concurrent.TimeUnit;

public class QueryFromDBAction implements QueryAction{

    //从本地数据库查询企业id
    public void execute(){
        try {
            TimeUnit.MILLISECONDS.sleep(500);
            String id  = "123456 - "+Thread.currentThread().getId();
            ActionContext.getActionContext().getContext().setId(id);
        } catch (InterruptedException e) {
            throw new RuntimeException(e);
        }
    }
}
